package apiday01;

public class StringDemo {
    public static void main(String[] args) {
        String s = "    hello world    ";
        System.out.println(s);
        System.out.println(s.length());
        s = s.trim();
        System.out.println(s);
        String s1 = s.toUpperCase();
        String s2= s1.toLowerCase();
        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s.startsWith("h"));
        System.out.println(s.endsWith("d"));
        char c = s.charAt(0);
        System.out.println(c);
        String s3 = s.substring(3);
        System.out.println(s3);

    }
}
